/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kz.epam.homedevices.Machining;

import kz.epam.homedevices.ElectricalDevice;

/**
 *
 * @author Knoppix
 */
public class MachiningDevice extends ElectricalDevice {

    private double frequency;
    private MachiningType type;

    public MachiningDevice() {
    }

    public MachiningDevice(MachiningType type, String maker, Double cardinality, boolean powerOn, double frequency) {
        super(maker, cardinality, powerOn);
        this.frequency = frequency;
        this.type = type;
    }

    public double getFrequency() {
        return frequency;
    }

    public void setFrequency(double frequency) {
        this.frequency = frequency;
    }

    public MachiningType getType() {
        return type;
    }

    public void setType(MachiningType type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "\n"+this.type+" {"+super.toString()+", frequency = "+this.frequency+"}";
    }
}
